package com.codefish.codefishseckill.mapper;

import com.codefish.codefishseckill.entity.SecKillGoodsPermissionDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 秒杀商品权限表 Mapper 接口
 * </p>
 *
 * @author <a href='https://gitee.com/hzf2281'>codefish</a>
 * @since 2022-08-31
 */
@Mapper
public interface SecKillGoodsPermissionMapper extends BaseMapper<SecKillGoodsPermissionDO> {

    /**
     * 按照goods的编号获取权限列表
     * @param goodsId 商品编号
     * @return 权限列表
     */
    List<String> getPermissionsByGoodsId(Long goodsId);


}
